<?php

$config = require(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'common_config.php');
$database = array(
    'cache' => array(
        'class' => 'CMemCache',
        'servers' => array(
            array(
                'host' => '127.0.0.1',
                'port' => 11211,
                'weight' => 60,
            ),
        ),
    ),
//    'log' => array(
//        'class' => 'CLogRouter',
//        'routes' => array(
//            array(
//                'class' => 'CFileLogRoute',
//                'levels' => 'error, warning',
//            ),
//            array(
//                'class' => 'CWebLogRoute'
//            ),
//        ),
//    ),
    'db' => array(
        'connectionString' => 'mysql:host=121.40.128.20;dbname=1zw',
        'emulatePrepare' => true,
        'tablePrefix' => 'tk_',
        'username' => '1zw',
        'password' => '123456',
        'charset' => 'utf8',
        'schemaCachingDuration' => 3600,
    ),
);
$config['components'] = CMap::mergeArray($config['components'], $database);
$config['params']['bbsInfo']['url'] = 'http://bs.1zw.com/';
$config['params']['sinaAPI'] = array(
    'WB_AKEY' => "526570810",
    'WB_SKEY' => "c9d28a326bbfabf038352e7d8582b9b6",
    'WB_CALLBACK_URL' => "http://yii.1zw.com/user/oauth/sina"
);
$config['params']['QQAPI'] = array(
    'appid' => "101142447",
    'appkey' => "6f13b2dfe294c93b3c632875ba3a37ce",
    'callback' => "http://yii.1zw.com/user/oauth/qq",
    'scope' => "get_user_info,add_t,add_pic_t"
);
//gii
$config['modules']['gii'] = array(
    'class' => 'system.gii.GiiModule',
    'password' => '123',
);
return $config;
